<template>
    <a-tabs :defaultActiveKey="0">
      <template v-for="(chart,index2) in group.charts">
        <a-tab-pane :key="index2" :tab="chart.head.name">
          <onl-graphreport-auto-chart :propsChartData="chart" :key="index2" >
            <a-button size="small" type="primary" slot="extra_" href="#" class="ant-btn-background-ghost" @click="details(chart.head.code)">详情</a-button>
          </onl-graphreport-auto-chart>
        </a-tab-pane>
      </template>
    </a-tabs>
</template>

<script>
import OnlGraphreportAutoChart from '../auto/OnlGraphreportAutoChart'
export default {
  name: 'GroupTemplateCard',
  components: {
    OnlGraphreportAutoChart
  },
  props: ['group'],
  data() {
    return {

    }
  }
}
</script>
<style scoped>

</style>
